
package com.axxc.jpa.service.impl;

import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Service;

import com.axxc.jpa.entity.StudentEntity;
import com.axxc.jpa.out.model.Student;
import com.axxc.jpa.service.AbstractStuentCrudService;
import com.axxc.jpa.service.IStuCrudService;
import com.axxc.jpa.specification.StudentSpec;

/**
 * @ClassName: A
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @author 熊小川
 * @date 2018年5月13日 下午6:50:13
 * @See
 */
@Service
public class StudentCrudSImpl extends AbstractStuentCrudService<Student, StudentEntity, Long>
		implements IStuCrudService<Student, Long> {

	@Override
	protected Specification<StudentEntity> toFilter(Student model) {
		// TODO Auto-generated method stub
		return new StudentSpec(model);
	}

}
